import axios,  { type ResponseDataType } from "@/utils/axios";

enum Api {
    Login = '/login',
}

interface LoginParams {
    username: string;
    password: string;
}

/** 用户登录 */
export function loginService(data: LoginParams): Promise<ResponseDataType> {
    return axios.post(Api.Login, data);
}